package org.example.bookshelf_manager.model;

import lombok.Data;

/**
 * @ClassName PageRequest
 * @Description 分页请求
 * @Author ZJX
 * @Date 2024/8/28 12:07
 * @Version 1.0
 */


@Data
public class PageRequest {
    private Integer pageNum = 1;
    private Integer pageSize = 10;
    private Integer offset;

    public Integer getOffset(){
        return (pageNum - 1) * pageSize;
    }

}
